package com.example.communitypro.pojo;

import java.io.Serializable;
import java.util.Date;

public class UserActions implements Serializable {
    private Integer userActionNo;

    private Integer userNo;

    private Integer userObjectNo;

    private Integer userActionType;

    private Date userActionTime;

    private static final long serialVersionUID = 1L;

    public Integer getUserActionNo() {
        return userActionNo;
    }

    public void setUserActionNo(Integer userActionNo) {
        this.userActionNo = userActionNo;
    }

    public Integer getUserNo() {
        return userNo;
    }

    public void setUserNo(Integer userNo) {
        this.userNo = userNo;
    }

    public Integer getUserObjectNo() {
        return userObjectNo;
    }

    public void setUserObjectNo(Integer userObjectNo) {
        this.userObjectNo = userObjectNo;
    }

    public Integer getUserActionType() {
        return userActionType;
    }

    public void setUserActionType(Integer userActionType) {
        this.userActionType = userActionType;
    }

    public Date getUserActionTime() {
        return userActionTime;
    }

    public void setUserActionTime(Date userActionTime) {
        this.userActionTime = userActionTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserActions other = (UserActions) that;
        return (this.getUserActionNo() == null ? other.getUserActionNo() == null : this.getUserActionNo().equals(other.getUserActionNo()))
                && (this.getUserNo() == null ? other.getUserNo() == null : this.getUserNo().equals(other.getUserNo()))
                && (this.getUserObjectNo() == null ? other.getUserObjectNo() == null : this.getUserObjectNo().equals(other.getUserObjectNo()))
                && (this.getUserActionType() == null ? other.getUserActionType() == null : this.getUserActionType().equals(other.getUserActionType()))
                && (this.getUserActionTime() == null ? other.getUserActionTime() == null : this.getUserActionTime().equals(other.getUserActionTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUserActionNo() == null) ? 0 : getUserActionNo().hashCode());
        result = prime * result + ((getUserNo() == null) ? 0 : getUserNo().hashCode());
        result = prime * result + ((getUserObjectNo() == null) ? 0 : getUserObjectNo().hashCode());
        result = prime * result + ((getUserActionType() == null) ? 0 : getUserActionType().hashCode());
        result = prime * result + ((getUserActionTime() == null) ? 0 : getUserActionTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userActionNo=").append(userActionNo);
        sb.append(", userNo=").append(userNo);
        sb.append(", userObjectNo=").append(userObjectNo);
        sb.append(", userActionType=").append(userActionType);
        sb.append(", userActionTime=").append(userActionTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}